<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=<tpl> $NCharset </tpl>" />
<link href="<tpl> $template_dir </tpl>/member/css/layout.css" rel="stylesheet" type="text/css" />
<tpl>include file ='../head.config.html'</tpl>
<script type="text/javascript">
$().ready(function() {
	$('#negative').click(
		function(){
			$('form input[@type=checkbox]').each(function(){
				$(this).attr('checked',!$(this).attr('checked'))
			})
		}
	);
	$('#selectall').click(
		function(){
			$('form input[@type=checkbox]').attr('checked',true)
		}
	)
});
</script>
<style>
#SpaceStatusChart_wai{position:absolute;
width:270px;height:25px;
left:125px;
top:18px;
*top:18px;
_top:21px}
#SpaceStatusChart{
	height:20px;
	border:1px solid #AAA;
	float:left;
	background-color:#fff;
	display:block;
	width:100%;
	position:absolute;
	left:0;top:0

}#SpaceStatusChart1{
	height:20px;
	
	float:left;
	background-color:#43BCDE;
	display:block;
	width:<tpl> $message_percent </tpl>%;
	position:absolute;
left:1px;
top:3px;
*top:3px;
_top:1px
}
</style>
</head><body><tpl>include file ='../header.html'</tpl>
<div id="container761"> 
<div class="own_member_main">
 <tpl>include file ='own_menu.html'</tpl>
  <div class="member_right">
  
  <div class="new_main_left">
		<div class="new_main_left1">
	<h1 class="new_text">
	<tpl> if $message_genre eq 'send' </tpl>
		<tpl> $langMsgSend </tpl>
	<tpl> else </tpl>
		<tpl> $langShopMsg </tpl>
	<tpl> /if </tpl>
	</h1>
		 <i></i>
	</div>
		  <b></b>
	</div>
  <div id="own_main_rightop" style=" position:relative; z-index:-1">
    <div title="<tpl> $langShopMessageUseCircs </tpl>" > <tpl> $langMsgInfo </tpl>:
      <div  id="SpaceStatusChart_wai">
          <div id="SpaceStatusChart"></div>
        <div id="SpaceStatusChart1"></div>
      </div>
      <div><tpl> if $message_genre eq 'receive' </tpl>
          <span style="float:right"><tpl> $langShopSpaceUse </tpl><tpl> $message_num|default:'0' </tpl>/200</span>
        <tpl> else if </tpl>
        <span style="float:right">  <tpl> $langShopSendSpaceUse </tpl><tpl> $message_num|default:'0' </tpl>/100</span>
        <tpl> /if </tpl>
        </div>
    </div>
  </div>
  <div id="own_main_rightop_line" style="margin-top:-3px; margin-right:0;*margin-right:0;_margin-right:2px; margin-left:0;*margin-left:0;_margin-left:2px;">
	  <b class="b4"></b>
	  <b class="b3"></b>
	  <b class="b2"></b>
	  <b class="b1"></b>
	  </div>
   
	<div>
		<form action="own_message.php?action=del&genre=<tpl> $message_genre </tpl>" method="post">
      <table border="1" cellpadding="0" cellspacing="0" bordercolor="#DEEBEF" bgcolor="#CCCCCC" style="margin:10px 0px">
	  <tr class="tr_FAFAFA">
          <th height="30" colspan="5" align="left" valign="middle" bgcolor="#FFFFFF" style=" padding-left:10px">   <a id="add_message"  class="new_anniu" href="own_message.php?action=add" style="color:#333;">
		    <tpl> $langShopSendMessage </tpl>
          </a>
	        <a id="add_message"  class="new_anniu" href="own_message.php" style="color:#333"><tpl> $langMsgReceive </tpl>
	        </a>
	        <a id="add_message"  class="new_anniu" href="own_message.php?action=send" style="color:#333;"><tpl> $langMsgSend </tpl>
	        </a></th>
		  </tr>
        <tr class="tr_FAFAFA">
          <th height="30" align="center" valign="middle" bgcolor="#FFFFFF"><a id="selectall" href="javascript:;">
            <tpl> $langCAllSelect </tpl><!-- 全选 --></a>/<a id="negative" style=" font-weight:100; background:none; font-weight:100" href="javascript:;"><tpl> $langCAllNotSelect </tpl><!-- 反选 --></a></th>
		  <th height="30" align="center" valign="middle" bgcolor="#FFFFFF"><tpl> $langShopState </tpl><!-- 状态 --></th>
          <th height="30" align="center" valign="middle" bgcolor="#FFFFFF"><tpl> $langShopTitle </tpl><!-- 标题 --></th>
          <th height="30" align="center" valign="middle" bgcolor="#FFFFFF"><tpl> if $smarty.get.action eq "send" </tpl>
			  <tpl> $langShopReceiveMan </tpl><!-- 接收人 -->
			  <tpl> else </tpl>
			  <tpl> $langShopMessageFrom </tpl><!-- 来自 -->
			  <tpl> /if </tpl>		  </th>
          <th height="30" align="center" valign="middle" bgcolor="#FFFFFF"><tpl> $langShopSendTime </tpl><!-- 发送时间 --></th>
        </tr>
        <tpl> section name=i loop=$message_array </tpl>
        <tr class="tr_dotted">
          <td height="30" align="center" valign="middle" bgcolor="#FFFFFF" style="width:60px"><tpl> if $message_array[i].isallowdel eq 1 </tpl>
            <input name="messageid[]" type="checkbox" id="messageid" value="<tpl> $message_array[i].message_id </tpl>" />
            <tpl> /if </tpl> </td>
		  <td height="30" align="center" valign="middle" bgcolor="#FFFFFF">
		  <tpl> if $message_array[i].member_name eq '0' </tpl> <tpl> $langShopSeries </tpl> <tpl> /if </tpl>
		  <tpl> if $message_array[i].isnew eq '0' </tpl> <tpl> $langShopNotRead </tpl> <tpl> /if </tpl>		  </td>
          <td height="30" align="center" valign="middle" bgcolor="#FFFFFF"><a href="own_message.php?action=show&messageid=<tpl> $message_array[i].message_id </tpl>&genre=<tpl> $message_genre </tpl>" class="<tpl>if $message_array[i].isnew=='0' </tpl>b<tpl>/if</tpl>">
            <tpl> $message_array[i].title </tpl></a></td>
          <td height="30" align="center" valign="middle" bgcolor="#FFFFFF" style="text-align:center;">
		  <tpl> if $message_array[i].send_name eq '0' </tpl>
		  	<tpl> $langShopSystem </tpl>
		  <tpl> else </tpl>
		  	<tpl> $message_array[i].send_name</tpl>
		  <tpl> /if </tpl>		  </td>
          <td height="30" align="center" valign="middle" bgcolor="#FFFFFF" class="font666" style="text-align:center; width:110px"><tpl> $message_array[i].send_time </tpl></td>
        </tr>
        <tpl> /section </tpl>
      </table>
	  </div>

      <input type="submit" name="Submit" value="<tpl> $langCdele </tpl>"class="new_anniu" />
	
	  <!-- 删除 -->
	
	  <input type="button" name="Submit" value="<tpl> $langShopEmptied </tpl>" onclick="location.href='own_message.php?action=clean&genre=<tpl> $message_genre </tpl>'"class="new_anniu" />

	  <!-- 清空 -->

	  <input onclick="javascript:location.href='own_message.php?action=derived&genre=<tpl> $message_genre </tpl>'" type="button" value="<tpl> $langShopDerived </tpl>" class="new_anniu"/>
	
    </form>
  </div>
  </div>
  <tpl> include file ='../../../html/footer.html' </tpl> </div>
</body>
</html>
